// src/main/java/cn/edu/tju/elm/model/TransactionType.java
package cn.edu.tju.elm.model;

public enum TransactionType {
    RECHARGE("充值"),
    WITHDRAW("提现"),
    PAYMENT("支付"),
    TRANSFER_OUT("转账支出"),      // 新增：转账支出
    TRANSFER_IN("转账收入"),       // 新增：转账收入
    REFUND("退款"),
    REWARD("奖励"),
    FEE("手续费"),
    FREEZE("冻结"),
    UNFREEZE("解冻"),
    CREDIT_PAYMENT("信用支付"),
    CREDIT_REPAYMENT("信用还款"),
    OVERDUE_INTEREST("逾期利息"),
    VIP_ACTIVATION("VIP激活"),
    VIP_EXPIRATION("VIP到期");

    private final String description;

    TransactionType(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }
}